package com.dorm.cj.adapter;

public class Adapter implements TriplePin {

    private DualPin dualPinDevice;

    public Adapter(DualPin dualPinDevice) {
        this.dualPinDevice = dualPinDevice;
    }

    @Override
    public void electrify(int l, int n, int e) {
        //实现的是三厢接口，真正供电的是两厢
        dualPinDevice.electrify(l,n);
    }
}
